package com.rstrulak.dao;

import java.util.List;

import com.rstrulak.core.dao.GenericDao;
import com.rstrulak.model.Context;
import com.rstrulak.model.Project;
import com.rstrulak.model.Task;
import com.rstrulak.model.User;

public interface TaskDao extends GenericDao<Task, Long> {

	public List<Task> getTaskListByProject(Project project);

	public List<Task> getTaskListByContext(Context context);

	public List<Task> getTaskListByContextAndOwner(Context context, User owner);

	public List<Task> getTaskListByUser(User user);

	public void deleteAllTaskFromProject(Project project);
}
